#!/usr/bin/env python3
"""启动UI服务脚本"""

import subprocess
import sys
from config.settings import config

if __name__ == "__main__":
    cmd = [
        sys.executable, "-m", "streamlit", "run",
        "ui/streamlit_app.py",
        "--server.port", str(config.ui.port),
        "--server.address", config.ui.host
    ]
    
    subprocess.run(cmd)
